package com.woniu.mapper;

import com.woniu.dto.InpatientAppQueryDTO;
import com.woniu.dto.PendingDepositQueryDTO;
import com.woniu.entity.InpatientApplication;
import com.woniu.utils.ResponseUtil;
import com.woniu.vo.InpatientAppVO;

import java.util.List;

/**
* @author 11214
* @description 针对表【inpatient_application】的数据库操作Mapper
* @createDate 2025-10-31 14:20:28
* @Entity com.woniu.entity.InpatientApplication
*/
public interface InpatientApplicationMapper {

    Integer deleteByPrimaryKey(Long id);

    Integer insert(InpatientApplication record);

    Integer insertSelective(InpatientApplication record);

    InpatientApplication selectByPrimaryKey(Long id);

    Integer updateByPrimaryKeySelective(InpatientApplication record);

    Integer updateByPrimaryKey(InpatientApplication record);
    //根据条件分页查询入院申请列表
    List<InpatientAppVO> listInpatientApps(InpatientAppQueryDTO queryDTO);
    //查询需要缴纳押金的入院申请
    List<InpatientAppVO> findPendingDeposits(PendingDepositQueryDTO queryDTO);
}
